<table class="pm-list-table table-list table" cellspacing=0 >
<?if(is_array($records )){?>
  <tr>
    <th>uid</th>
    <th>键</th>
    <th>创建日期</th>
    <th>内容</th>
    <th>发件人</th>
    <th>
      操作
    </th>
  </tr>
<?foreach ($records as $r ){?>
  <tr>
    <td><?=$r['uid']?></td>
    <td><?=$r['key']?></td>
    <td><?=$r['input_time']?></td>
    <td><?=$r['content']?></td>
    <td><?=$r['from']?></td>
    <td>
      <a href="/pm/view/<?=$r['id']?>" >查看</a>
      <a href="/pm/edit/<?=$r['id']?>" >编辑</a> 
    </td>
  </tr>
<?  }
}?>
</table>
<?=$pagination?>